package adhoc.tel.fer.hr;

import android.content.Context;
import android.content.SharedPreferences;

public class PreferencesHelper {
	private static SharedPreferences facebookSettings;
	private static SharedPreferences.Editor facebookSettingsEditor;

	
	public static void initialize(Context context){
		//opening position settings
		facebookSettings = context.getSharedPreferences("drumset_activation_data", Context.MODE_PRIVATE);
		facebookSettingsEditor = facebookSettings.edit();
	}
	
	public static String getFacebookID() {
		return facebookSettings.getString("facebookID", null);
	}



	public static void setFacebookID(String facebookID) {
		facebookSettingsEditor.putString("facebookID", facebookID);
		facebookSettingsEditor.commit();
	}



	public static String getFacebookName() {
		return facebookSettings.getString("facebookName", null);
	}



	public static void setFacebookName(String facebookName) {
		facebookSettingsEditor.putString("facebookName", facebookName);
		facebookSettingsEditor.commit();
	}



	public static String getAccessToken() {
		return facebookSettings.getString("accessToken", null);
	}



	public static void setAccessToken(String accessToken) {
		facebookSettingsEditor.putString("accessToken", accessToken);
		facebookSettingsEditor.commit();
	}



	public static String getState() {
		return facebookSettings.getString("state", "3");
	}



	public static void setState(String state) {
		facebookSettingsEditor.putString("state", state);
		facebookSettingsEditor.commit();
	}



	public static String getUserFacebookID() {
		return facebookSettings.getString("userFacebookID", null);
	}



	public static void setUserFacebookID(String userFacebookID) {
		facebookSettingsEditor.putString("userFacebookID", userFacebookID);
		facebookSettingsEditor.commit();
	}
	
}
